package com.hitqz.robot.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hitqz.robot.api.business.entity.CvdGuideTaskEntity;
import com.hitqz.robot.biz.mapper.CvdGuideTaskMapper;
import com.hitqz.robot.biz.service.CvdGuideTaskService;
import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;

import java.util.List;
import java.util.Optional;

/**
 * 迎宾讲解任务配置
 *
 * @author kehanjiang
 * @date 2025-09-30 10:20:39
 */
@Service
@RequiredArgsConstructor
public class CvdGuideTaskServiceImpl extends ServiceImpl<CvdGuideTaskMapper, CvdGuideTaskEntity> implements CvdGuideTaskService, SmartInitializingSingleton {

    @Override
    public void afterSingletonsInstantiated() {
        this.update(Wrappers.<CvdGuideTaskEntity>lambdaUpdate()
                .set(CvdGuideTaskEntity::getStatus, "0"));
    }
}